{% extends "base_generic.html" %}
{% block content %}
        <h1><a href="/libros">Libros</a></h1>
        <h2><a href="/admin/libros//new/" class="add">Añadir libro</a></h2>
        <table class="imgswithoutborders">
        {% for libro in libros %}
          <tr>
            <td>{{ libro.name }}</td>
            <td><a href="/libro/{{ libro.slug }}">Public</a></td>
            <td><a href="/admin/libros/{{ libro.key }}/edit/">Editar</a></td>
            <td><a href="/admin/libros/{{ libro.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ libro.name }}?')){return true;}else{return false;}">Borrar</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
